#ifndef __FlashSecurityPolicy_H__
#define __FlashSecurityPolicy_H__

#include "Network/EssNetworkHeaders.h"
#include <string>

class FlashSecurityPolicyNet : public EssNetwork
{
public:
	FlashSecurityPolicyNet() : mLog("") {};

	virtual void onAccept(EssAcceptor* acceptor, EssConnector* connector);
	virtual bool onReceive(EssConnector* connector);
	virtual void onDisconnect(EssConnector* connector);

	virtual size_t getConnectorNum() const { return mConnectors.size(); }

	const std::string& getLog() const { return mLog; }
	void appendLog(const char* log) { mLog += log; }

protected:
	std::string		mLog;
};

#endif //__FlashSecurityPolicy_H__